<style lang="less" scoped>
.panel {
  margin-bottom: 10px;
  background: white;
  &-title {
    font-size: 14px;
    padding: 10px;
    border-bottom: 1px solid #eaeaea;
  }
  &-content {
    overflow: hidden;
    margin-top: 10px;
  }
}
.step {
  display: flex;
  font-size: 14px;
  &-left {
    width: 80px;
    text-align: right;
    padding: 0 20px 0 10px;
  }
  &-right {
    flex: 1;
    padding: 0 10px 15px 20px;
    position: relative;
    .pab {
      position: absolute;
      display: block;
      content: ' ';
      background: #eaeaea;
    }
    &:before {
      .pab();
      left: 0;
      top: 7px;
      height: 100%;
      width: 1px;
    }
    &:after {
      .pab();
      top: 7px;
      left: -2.5px;
      width: 8px;
      height: 8px;
      border-radius: 100%;
    }
    &.active {
      &:after {
        left: -4px;
        background: #3399fe;
        border: 2px solid #54b1f0;
      }
    }
  }

  &-item {
    display: flex;
  }
  &-label {
    color: #666;
  }
  &-value {
    word-wrap: break-word;
    word-break: break-all;
  }
  .time {
    color: #666;
  }
  .level {
  }
}
</style>

<template>
  <div>
    <div v-if="items.length==0" class="info">暂无数据</div>
    <div v-else>
      <div class="panel">
        <div class="panel-content">

          <div class="step" v-for="(item, index) in items" :key="index">

            <div class="step-left">
              <div class="time">{{item.FundingDate||'-'}}</div>
              <div class="level">{{item.Round||'-'}}</div>
            </div>

            <div :class="['step-right',{active:index==0}]">
              <div class="step-item">
                <div class="step-label">投资金额：</div>
                <div class="step-value">{{item.FundingMoney||'-'}}</div>
              </div>
              <div class="step-item">
                <div class="step-label">估值：</div>
                <div class="step-value">{{item.Valuation||'-'}}</div>
              </div>
              <div class="step-item">
                <div class="step-label">投资方：</div>
                <div class="step-value">{{item.Investor||'-'}}</div>
              </div>
            </div>

          </div>

        </div>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  props: ['items']
};
</script>
